package com.shuhg.book.control
{
	import flash.display.Bitmap;
	import flash.display.Loader;
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLRequest;

	public class LibaryLoader extends Sprite {
		
		static public var _width:Number;
		
		static public var _heigth:Number;
		
		static public var filePath:String;
		
		public function LibaryLoader() {
			var ldr:Loader = new Loader();
			var urlReq:URLRequest = new URLRequest(filePath);
			ldr.load(urlReq);
			ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
		}
		private function loaded(event:Event):void {
			var library:Bitmap = event.target.content;
			library.height=_heigth;
			library.width=_width;
			//var circle:Bitmap =  library as ;
			addChild(library);
		}
	}
}